package com.zc.study.designPattern.行为型设计模式.StatePattern;

public class Test {
    public static void main(String[] args) {
        Account acc =new Account("段誉",0.0);
        acc.deposit(1000);
        acc.withdraw(2000);
        acc.deposit(3000);
        acc.withdraw(4000);
        acc.withdraw(1000);
        acc.computeInterest();
    }
}
